export interface responesData {
  code: number;
  message: string;
  ok: boolean;
}
//获取全部菜单数据接口返回数据类型约束
export interface getAllMenuData {
  id?: number;
  createTime: string;
  updateTime: string;
  pid: number;
  name: string;
  code: null;
  toCode: null;
  type: number;
  status: null;
  level: number;
  children?: permission;
  select: boolean;
}
//返回的数组类型
export type permission = getAllMenuData[];
//返回的完整数据
export interface getAllMenuDataRespones extends responesData {
  data: getAllMenuData;
}
//添加或者修改菜单的数据类型约束
export interface addOrEditMenuData {
  code: string;
  id?: number;
  level: number;
  name: string;
  pid: number;
}
